POV-Ray : Newsgroups : povray.advanced-users : color_map question with. GIF files : Re: color_map question with. GIF files Server Time
30 Jul 2024 08:22:19 EDT (-0400)
  Re: color_map question with. GIF files  
From: Chris Huff
Date: 16 Nov 1999 18:00:56
Message: <3831E2D8.6F713FCF@compuserve.com>
I assume you are using a gradient pattern to color a height field based
on it's height?
In that case, try applying the texture before you scale the height
field.

height_field {
    //blah blah, height field stuff
    pigment {gradient y //or planar
        color_map {
            [0 color Green]
            [1 color Red]
        }
    }
}

Or are you asking about applying an image_map pigment to a height field
and having it align properly? In that case, remember that they are at
right angles to each other, and you have to rotate the image_map by 90
degrees on the x-axis before it will line up.
(image_map uses the xy plane by default, height fields are aligned in
the xz plane)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.